import request from '@/utils/request';

// 获取标签
export function getTag(type,params) {
  return request({
    url: `/admin/label/${type}`,
    method: 'get',
    params
  })
}

// 新增标签
export function addTag(type,data) {
  return request({
    url: `/admin/label/${type}`,
    method: 'post',
    data
  })
}

// 修改标签
export function editTag(type, data) {
  return request({
    url: `/admin/label/${type}`,
    method: 'put',
    data
  })
}

// 删除标签
export function deleteTag(type, data) {
  return request({
    url: `/admin/label/${type}`,
    method: 'delete',
    data
  })
}
